import Driver from 'driver.js';
import 'driver.js/dist/driver.min.css';

export default function({ element, content, position }) {
	const driver = new Driver();

	driver.defineSteps([
		{
			element,
			popover: {
				title: `<div class="guide-demo"><img src="${require('@/assets/2/images/red-package/guide-btn.png')}"><p>${content}</p></div>`,
				position
			}
		}
	]);

	return driver;
}
